<template>
  <div id="app">
    <!-- <h1>版本号：{{ version }}</h1>
    <div v-if="env==='development'">
      <Products></Products>
      <hr>
      <carts></carts>
    </div>
    <comment v-else></comment> -->

    <!-- <selectCom></selectCom> -->
    <selectCom></selectCom>
  </div>
</template>


<script>
// 需求：
// 1.yarn serve 的时候，展示购物车的界面
// 2.yarn comment 展示评论的界面
// 3.评论界面的端口6666
import selectCom from '@/select/index.vue'

export default {
  data() {
    return {
      version: '',
      env:'development'
    }
  },
  created () {
    console.log(process.env);
    this.version = process.env.VUE_APP_VERSION;
    this.env=process.env.NODE_ENV
  },

  components: {
    selectCom,
  },

}




</script>

<style>
#app {
  color: deepskyblue;
}
</style>
